<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html lang="zh-CN">
<head>
<title>打印页</title>
<meta charset="utf-8"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="static/lib/jquery/1.9.1/jquery-1.9.1.min.js"
	type="text/javascript"></script>
<link href="static/lib/bootstrap/3.0.2/css/bootstrap.min.css"
	type="text/css" rel="stylesheet" />
<link href="static/lib/bootstrap/3.0.2/css/bootstrap-theme.css"
	type="text/css" rel="stylesheet" />
<script src="static/lib/bootstrap/3.0.2/js/bootstrap.min.js"
	type="text/javascript"></script>
<link href="static/css/layout.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
  function doPrint(){
					          bdhtml=window.document.body.innerHTML;    
					          sprnstr="<!--startprint-->";    
					          eprnstr="<!--endprint-->";    
					          prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);    
					          prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));    
					          window.document.body.innerHTML=prnhtml;   
					          window.print();
					          setTimeout('window.close()', 5000);
					    }
  </script>
</head>
<body>
	<div style="background: #FFF;width:100%">
		<!--startprint-->
		<h3 class="center">供应商门店专柜明细</h3>
		<div>
			<table
				class="table table-striped table-hover o-l-table table-bordered"
					id="table2"  style="font-size: 13.5px; text-align: center">
				<thead>
					<tr>
						<th>门店</th>
						<th>商品条码</th>
						<th>商品名称</th>
						<th>楼层</th>
						<th>销售金额</th>
						<th>销售日期</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${bizStatementPospaySaleSupplierList}"
						var="pospaySaleSupplier">
						<tr
							data-herf="${contextPath}/biz/statement/pospaySaleSupplier/viewDetail?shopNo=${pospaySaleSupplier.shopNo}&barCode=${pospaySaleSupplier.barCode}&saleDate=<fmt:formatDate value="${pospaySaleSupplier.saleDate}" pattern="yyyy-MM-dd"/>"
							data-target="_self">
							<td>${pospaySaleSupplier.shopName}</td>
							<td>${pospaySaleSupplier.barCode}</td>
							<td>${pospaySaleSupplier.goodsName}</td>
							<td>${pospaySaleSupplier.floorName}</td>
							<td>${pospaySaleSupplier.saleAmount}</td>
							<td><fmt:formatDate value="${pospaySaleSupplier.saleDate}"
									pattern="yyyy-MM-dd" /></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<!--endprint-->
		<div style="width: 75%" align="center">
			<button class="btn btn-default btn_5" onClick="doPrint();">
				打印</button>
			<button class="btn btn-default btn_5" onClick="window.close();">
				关闭</button>
		</div>
	</div>
</body>
</html>